package io.github.talelin.latticy.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.*;
import java.util.List;

@Data
public class SpuDTO {
    // 标题
    @NotBlank
    @Length(min = 1,max = 128)
    private String title;

    // 副标题
//    @NotBlank
    @Length(min = 1,max = 255)
    private String subtitle;

    // 主图
//    @NotBlank
    @Length(min = 1,max = 255)
    private String img;

    @Length(min = 1,max = 255)
    private String forThemeImg;

    // 分类编号
    @Positive
    @NotNull
    private Integer categoryId;

    //
    @Max(1)
    @Min(0)
    private Integer online;

    //
    @Positive
    private Integer sketchSpecId;

    //
    @Positive
    private Integer defaultSkuId;

    // 价格
    @NotBlank
    @Length(min = 1,max = 20)
    private String price;

    @Length(min = 1,max = 20)
    private String discountPrice;

    // 描诉
    @Length(min = 1,max = 255)
    private String description;

    // 标签
    @Length(min = 1,max = 255)
    private String tags;

    private List<Integer> specKeyIdList;

    // 轮播图组
    private List<String> spuImgList;

    // spu详情图组
    private List<String> spuDetailImgList;

}
